package com.jtcoding.auditlog.service.impl;
import com.jtcoding.auditlog.dao.AuditLogDao;
import com.jtcoding.auditlog.model.AuditLog;
import com.jtcoding.auditlog.service.AuditLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author jason.tang
 * @create 2019-01-16 10:25
 * @description
 */
@Slf4j
@Service("auditLogService")
public class AuditLogServiceImpl implements AuditLogService {

    @Autowired
    private AuditLogDao auditLogDao;

    @Transactional
    @Override
    public int addAuditLog(AuditLog auditLog) {
        return auditLogDao.addAuditLog(auditLog);
    }
}